The smpp protocol is an open industrial standard protocol. It provides flexible data communication interfaces for Information Centers and short message system application terminals during text message data transmission. The information center has short message center smsc gsm Unstructured Supplementary Service data. server ussd and other types of short message system applications include the WAP Proxy Server email gateway and some other information ga
, target number, and encoding method. In PDU mode, three types of codes can be used to send Short Messages: 7-bit, 8-bit, and 16-bit (ucs2.
In the gsm_03.40 specification, the length of an SMS is defined:
140 characters: 8-bit encoding
160 characters: 7-bit encoding
70 characters: 16-bit encoding
Generally, there are two solutions for ultra-long text messages: one is to send multiple separate text messages, so that the mobile phone will receive multiple messages, second, multiple messages are se
The Logica smpp API has the following problems:
1. Support for long messages. Add the setmediamessagedata method to the submitsm. Java class.
/*** Added by zcg 2012-01-18 * process long messages ** @ Param buffer * @ throws wronglengthofstringexception */Public void setinclumessagedata (bytebuffer buffer) throws wronglengthofstringexception {try {This. invalid Message. setdata (buffer);} catch (exception e) {If (E instanceof wronglengthofstringexcept
This is a rare topic, but I recently helped my friends do this. So I wrote something for beginners.I. Prepare materialsThere are many SP development materials on the website, but mainly the following documents:1. misc1.6 SP subscription notification interface requirements2. smpp Protocol3366miscsystem SMS spaccess training (simplified version ).ppt4. Detailed description of SSO platform access specifications in dsmp specifications v1.5.1.pdf5. error c
short message center (SMSC) and the service provider (SP). It provides a secure and fast channel for data exchange between the two entities. The gateway and the Short Message center use the SMPP protocol (Short Message Peer to Peer) and the SP use the CMPP protocol (China Mobile Peer to Peer, China Mobile Peer protocol ), therefore, the short message gateway must complete protocol conversion, billing, routing, security, network management, and other
Interfaces:any""Capture Filter" option: Enter "host 127.0.0.1"Click the "Start" button to start scratching the bag.4) Send WAP push informationGo to the Test folder in the source file directory and execute the command:./test_ppg "Http://127.0.0.1:8080/cgi-bin/wap-push.cgi?username=foopassword=bar" Contentfile.txt Iptestpap.txtWhere the arguments "username" and "password" are "Ppg-username=foo" and "Ppg-password=bar" defined in the configuration file "pushkannel.conf" that is used when starting
, save voice channel, low demand for network and terminal.DisadvantagesThe use period will always occupy the signaling resources until the end of the business;To some extent will affect the development of voice services and other businessUSSD Network StructureInterface protocolUSSD interface protocols are similar to short messages, using SMPP or CMPP. SMPP is an international agreement, CMPP is China Mobile
DEBUG = yes to [smsgw] So that debugging information is written to the MMSC-yyyymmdd.LOG, smsdebug. log, and SMSOUT-yyyymmdd.LOG;
3. query MMS sending statusIf you receive an error message when sending MMS, first check the mmsc configuration on your phone; then you can view the MMSC-yyyymmdd.log under the gateway directory; upstream MMS is stored in the date directory under/mmscdata
Terms==========================================================
Smpp
: cap the information fee for the "billing user number"05: the "billing user number" is charged by SP.Feecode6octet string fee code (in units)Valid_time17octet string survival period. The format follows the smpp3.3 protocol.At_time17octet string scheduled sending time. The format follows the smpp3.3 protocol.Src_id21octet string source numberThe SP service code or long number prefixed with the service code. The Gateway fills in the complete source_addr field of the
connection protocol. such as the SMPP Agreement;
Application layer of heartbeat detection, it is mainly by the business products through the agreed way to send the heartbeat message to the other side of the implementation.
The purpose of heartbeat detection is to confirm that the current link is available, that the other person is alive and can receive and send messages normally. As a highly reliable NIO framework, Netty also pr
1. Preliminary knowledge
has been rarely seen how many people use PHP socket module to do something, probably everyone positioning it in the context of scripting language, but in fact, PHP socket module can do a lot of things, including doing ftplist,http post submission, SMTP submission, Group packages and carry out special message interactions (e.g. SMPP protocol), WHOIS queries. These are the more common queries.
In particular, the PHP socket ext
decoders have been described in detail, so let's learn about the last common decoder-lengthfieldbasedframedecoder.Most protocols (private or public), the protocol header carries a length field that identifies the body of the message or the length of the whole packet message, such as SMPP, HTTP protocol, and so on. Because of the universality based on the length decoding requirement, and in order to reduce the difficulty of the user's protocol develop
What is a socket?
A socket is an intermediate software abstraction layer that the application layer communicates with the TCP/IP protocol family, which is a set of interfaces. In design mode, the socket is actually a façade mode, it is the complex TCP/IP protocol family hidden behind the socket interface, for the user, a set of simple interface is all, let the socket to organize data to meet the specified protocol. It has been very rare to see how many people use the PHP socket module to do so
PHPSOCKET programming and socket programming. PHPSOCKET programming details, socket programming details 1. the preliminary knowledge has never seen how many people use the php socket module to do some things. most people have positioned it in the script language php socket programming details, socket programming details
1. prerequisites
I have never seen how many people use the socket module of php to do some things. maybe everyone has positioned it within the scope of the script language, but
significant threat to system reliability.From the technical aspect, to solve the link reliability problem, we must periodically check the validity of the link. At present, the most popular and common practice is heartbeat detection.The heartbeat detection mechanism is divided into three levels:1) The heartbeat detection at TCP level, that is TCP's keep-alive mechanism, its scope is the whole TCP protocol stack;2) The heartbeat detection of the protocol layer, mainly exists in the raised here co
'- TFields- eHttp.host- eHttp.request.uri-l | Tr-d ' \ t ' comment:-S: Fetch only the first 512 bytes;-I: Capture the eth0 network card; N: Prohibit network object name resolution; -F: Only the protocol TCP is captured, the destination port is 80; -R: Filter out Http.host and Http.request.uri; -T,-E: Refers to the printing of these two fields; -I: Output to the command line interface;//Print the current MySQL query statement in real timeTshark-S 512-i eth0-n-F ' TCP DST Port 3306 '-
PHP Socket Programming Detailed
This article mainly introduces the PHP socket programming detailed, the need for friends can refer to the following
1. Pre-knowledge
It has been very rare to see how many people use the PHP socket module to do something, probably everyone put it in the context of scripting language, but in fact, PHP socket module can do a lot of things, including do ftplist,http post submission, SMTP commit, Group packages and make special message interactions (such as the
and the connection needs to be closed and re-established.The specific Heartbeat message format, as well as the sending interval, and the number of times the Heartbeat message is not received, the link is considered abnormal, and whether the data department counts as a heartbeat message (if some systems receive a packet, the heartbeat timer is cleared, which is equivalent to a packet in the system as a heartbeat message). Both Ends Need to negotiate. For example, the
the token.
For example, the customer can use the Web tracking tool to write messages and send messages to Domino everyplace SMS.The recipient selected in the user name list. Administrators can set up this website, and users can use it easily, featuring both privacy and convenience.
Domino everyplace SMSSupports accept, TCP/IP, and X.25 packet forwarding. When the instance is confirmed, the information is sent to the data service, and main telephone channels (such as GSM, TDMA, CDMA, a
as a heartbeat message (if some systems receive a packet, the heartbeat timer is cleared, which is equivalent to a packet in the system as a heartbeat message). Both Ends Need to negotiate. For example, the smpp protocol used by GSM to connect Short Message Centers with other network entities requires a persistent connection.
Therefore, short-and-short connections are just a concept of Short-and-short connections. They use common socket functions and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.